/* ============================================
   Shop additions — matches theme colours:
   green #9cc623, orange #ff7f01, dark #282828,
   body text #7d7d7d, headings font Barlow, body font Roboto
   ============================================ */

/* Homepage hero slider — Goat & Sheep Manager app promo slide.
   Uses the same slide-1 background photo, with a dark overlay so the
   light text stays readable (slide 1's copy sits on the light side of
   that photo; this slide needs the opposite treatment). */
.app-promo-slide{
  position:relative;
}
.app-promo-slide::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(15,30,20,0.88) 0%, rgba(15,30,20,0.55) 55%, rgba(15,30,20,0.25) 100%);
  z-index:1;
}
.app-promo-slide .container{
  position:relative;
  z-index:2;
}

.app-promo-content{ max-width:560px; }

.app-promo-content .app-promo-eyebrow{
  font-size:17px;
  font-weight:700;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:#E7C778;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  gap:12px;
}
.app-promo-content .app-promo-eyebrow::before{
  content:"";
  width:24px;
  height:2px;
  background:#E7C778;
  display:inline-block;
}

.app-promo-content .app-promo-headline{
  font-family:'Poppins', sans-serif;
  font-weight:700;
  font-size:clamp(28px, 3.4vw, 44px);
  line-height:1.2;
  color:#FBF3DE;
  margin-bottom:20px;
}
.app-promo-content .app-promo-headline em{
  font-style:normal;
  font-weight:800;
  color:#E7C778;
}

.app-promo-content .app-promo-subcopy{
  font-size:16px;
  line-height:1.65;
  color:#D9E4D4;
  margin-bottom:28px;
}

.app-promo-badges{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:26px;
}
.promo-badge{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(251,243,222,0.08);
  border:1px solid rgba(251,243,222,0.35);
  color:#FBF3DE;
  text-decoration:none;
  padding:11px 18px;
  border-radius:10px;
  backdrop-filter:blur(2px);
  transition:background .2s ease;
}
.promo-badge:hover{
  background:rgba(251,243,222,0.16);
  color:#FBF3DE;
}
.promo-badge i{ font-size:19px; flex-shrink:0; }
.promo-badge .lines{ line-height:1.15; }
.promo-badge .small{
  display:block;
  font-size:10px;
  font-weight:500;
  opacity:0.8;
  letter-spacing:0.03em;
  text-transform:uppercase;
}
.promo-badge .big{ display:block; font-size:14.5px; font-weight:700; }

.app-promo-tags{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}
.app-promo-tags .tag{
  font-size:12.5px;
  font-weight:600;
  color:#BFE0B8;
  display:flex;
  align-items:center;
  gap:7px;
}
.app-promo-tags .dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#C99A3D;
  display:inline-block;
}

.app-promo-mockup{
  display:flex;
  align-items:center;
  justify-content:center;
}
.app-promo-screenshot{
  width:100%;
  max-width:620px;
}

/* Homepage promo banner (admin-editable, sits right under the hero) */
.promo-banner-section{
  background:#282828 linear-gradient(90deg, rgba(40,40,40,0.88), rgba(40,40,40,0.7));
  background-size:cover;
  background-position:center;
  padding:60px 0;
  text-align:center;
}
.promo-banner-inner h2{
  font-family:'Barlow', sans-serif;
  color:#fff;
  font-size:clamp(24px, 3.5vw, 36px);
  font-weight:700;
  margin:0 0 12px;
}
.promo-banner-inner p{
  color:#e7e7e7;
  font-size:15.5px;
  margin:0 0 22px;
}
.promo-banner-inner .shop-btn{
  background:#ff7f01;
}
.promo-banner-inner .shop-btn:hover{
  background:#e56f00;
}

/* Header cart link */
.header-cart-link{
  color:#fff;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.header-cart-link:hover{ color:#9cc623; }
.cart-count-badge{
  background:#ff7f01;
  color:#fff;
  font-size:11px;
  font-weight:700;
  border-radius:50%;
  width:18px;height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Product card price + add-to-cart row: original theme only had room for a
   tiny basket icon here, not a qty box + button, so we stack them to avoid
   the qty/button overlapping the price text on narrower cards. */
.h-product-action ul{
  flex-direction:column;
  align-items:stretch;
  gap:12px;
}
.h-product-action ul li.price{
  text-align:center;
}
.h-product-action ul li.hp-cart{
  display:flex;
  justify-content:center;
}
.hp-cart-disabled{ display:flex; align-items:center; justify-content:center; }
.out-of-stock-label{ font-size:12px; color:#ff0501; font-weight:600; }

/* Qty + add-to-cart form on each product card */
.hp-cart-form{
  display:flex;
  align-items:center;
  gap:8px;
}
.hp-qty-input{
  width:44px;
  padding:6px 4px;
  text-align:center;
  font-size:13px;
  border:1px solid #e0e0e0;
  border-radius:3px;
  color:#2c2d34;
}
.hp-cart-btn{
  background:#9cc623;
  border:none;
  border-radius:3px;
  padding:7px 14px;
  font-size:14px;
  color:#fff;
  cursor:pointer;
  line-height:1;
}
.hp-cart-btn:hover{ background:#7fa519; }

/* Added-to-cart flash message on homepage */
.cart-flash-message{
  background:#eef7dc;
  color:#5c7d13;
  border:1px solid #9cc623;
  padding:12px 18px;
  border-radius:4px;
  text-align:center;
  margin-bottom:30px;
  font-family: 'Roboto', sans-serif;
}
.cart-flash-message a{ color:#5c7d13; font-weight:700; text-decoration:underline; }

/* ---- Simple page banner used on cart / checkout / order pages ---- */
.shop-page-banner{
  background:#282828;
  padding:70px 0 50px;
  text-align:center;
}
.shop-page-banner h1{
  font-family:'Barlow', sans-serif;
  color:#fff;
  font-size:34px;
  font-weight:700;
  margin:0;
}
.shop-page-banner p{
  color:#b5b6b7;
  margin-top:8px;
}

/* ---- Cart page ---- */
.shop-section{ padding:70px 0 100px; background:#fff; }
.cart-table{ width:100%; border-collapse:collapse; }
.cart-table th{
  text-align:left;
  font-family:'Barlow', sans-serif;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#414141;
  padding:14px 12px;
  border-bottom:2px solid #ebebeb;
}
.cart-table td{
  padding:18px 12px;
  border-bottom:1px solid #ebebeb;
  vertical-align:middle;
  font-family:'Roboto', sans-serif;
  color:#414141;
}
.cart-table img.cart-thumb{
  width:60px;height:60px;object-fit:cover;border-radius:3px;
}
.cart-table .qty-input{
  width:56px;
  padding:6px;
  text-align:center;
  border:1px solid #d3d3d3;
  border-radius:3px;
}
.cart-remove-btn{
  background:none;border:none;color:#ff0501;cursor:pointer;font-size:13px;
}
.empty-cart-box{ text-align:center; padding:80px 0; color:#7d7d7d; }

.promo-form{ display:flex; gap:10px; max-width:380px; margin:30px 0; }
.promo-form input{
  flex:1; padding:12px 14px; border:1px solid #d3d3d3; border-radius:3px;
}

.cart-totals{
  max-width:360px; margin-left:auto; margin-top:20px;
  border-top:2px solid #ebebeb; padding-top:16px;
}
.cart-totals .row-line{
  display:flex; justify-content:space-between; padding:6px 0; font-family:'Roboto', sans-serif; color:#414141;
}
.cart-totals .row-line.total{
  font-family:'Barlow', sans-serif; font-weight:700; font-size:20px; color:#282828;
  border-top:1px solid #ebebeb; margin-top:8px; padding-top:12px;
}

/* Shared button, styled like the theme's gradient button but simplified */
.shop-btn{
  display:inline-block;
  background:#9cc623;
  color:#fff !important;
  font-family:'Barlow', sans-serif;
  font-weight:600;
  font-size:15px;
  padding:13px 30px;
  border-radius:3px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  transition:background .2s ease;
}
.shop-btn:hover{ background:#7fa519; color:#fff; }
.shop-btn.outline{
  background:transparent; color:#282828 !important; border:1.5px solid #282828;
}
.shop-btn.outline:hover{ background:#282828; color:#fff !important; }

/* ---- Checkout page ---- */
.checkout-layout{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; }
.checkout-layout label{
  display:block; font-family:'Roboto', sans-serif; font-size:14px; font-weight:600;
  color:#414141; margin-bottom:16px;
}
.checkout-layout input, .checkout-layout textarea{
  width:100%; margin-top:6px; padding:12px 14px;
  border:1px solid #d3d3d3; border-radius:3px; font-family:'Roboto', sans-serif;
}
.order-summary-box{
  background:#f8f5f0; padding:26px; border-radius:6px;
}
.order-summary-box .order-line{
  display:flex; justify-content:space-between; padding:8px 0;
  border-bottom:1px solid #ebebeb; font-size:14.5px; color:#414141;
}
#checkout-error{
  display:none; color:#ff0501; background:#fdeceb;
  padding:10px 14px; border-radius:4px; margin-bottom:14px; font-size:14px;
}

/* ---- Order success page ---- */
.order-success-box{ text-align:center; padding:100px 0; }
.order-success-box h1{
  font-family:'Barlow', sans-serif; color:#282828; font-size:30px;
}
.order-success-box p{ color:#7d7d7d; margin-top:10px; }

@media (max-width: 900px){
  .checkout-layout{ grid-template-columns:1fr; }
}
