@font-face {
  font-family: "Rough Tuscan";
  src:
    url("../fonts/Roughtuscan-0aRr.woff2") format("woff2"),
    url("../fonts/Roughtuscan-0aRr.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Theme / Base
   ========================= */
:root{
  /* Label-inspired starter palette (tweak as desired) */
  --text: #030303;
  --muted: #555555;

  --brown: #413c2e;
  --tan: #ccbc8a;
  --olive: #786f53;

  /* Dividers */
  --rule: rgba(65, 60, 46, 0.35);

  /* Links */
  --link: var(--brown);

  /* Layout */
  --max: 1100px;
  --radius: 18px;
  --gap: 42px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background-color: transparent;
  background-image: url("../images/cows-eating-3.png");
  background-repeat: repeat;
  background-position: top left;
  color: var(--text);
  font-family: Calibri, "Segoe UI", Candara, Arial, sans-serif;
  line-height: 1.45;
  font-size: 20px;
}

/* Simple, consistent focus (keyboard users) */
:focus-visible{
  outline: 2px solid rgba(204, 188, 138, 0.9);
  outline-offset: 3px;
}

/* Links */

/* Unvisited */
a:link{
  color: blue;
  text-decoration: none;
}

/* Visited */
a:visited{
  color: var(--brown);
}

a:hover{ text-decoration: underline; }

/* =========================
   Layout
   ========================= */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 28px;
}

header{
  background: var(--tan);
  text-align: center;
  padding-top: 14px;
  padding-bottom: 18px;
}

/* Top title */
.brand{
  margin: 0;
  font-size: clamp(50px, 7vw, 100px);
  letter-spacing: 0.5px;
  font-weight: 400; /* Rough Tuscan tends to look bold already */
  font-family: "Rough Tuscan", Georgia, "Times New Roman", serif;
}

/* Visible divider under title */
.rule{
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 18px 0 0;
}

/* Two-column main section */
.main{
  padding: 30px;
  background: var(--tan);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap);
  padding-top: 36px;
  align-items: start;
  /* padding: 28px;   only right side for now */
}

/* Mobile stacking */
@media (max-width: 820px){
  .main{
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* =========================
   Logo area
   ========================= */
.logoBox{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

/* If you use an <img> logo */
.logoImg{
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* If you still need a placeholder container */
.logo{
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.02);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Right column content
   ========================= */
.h2{
  margin: 0 0 6px;
  font-size: 35px;
  font-weight: 800;
  color: var(--brown);
}

ul{
  list-style-type: disc;
}

sup{
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

.sub{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

/* Visible dividers between groups (per blueprint) */
.divider{
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 18px 0;
}

.section{
  padding: 18px 0;
}

.sectionTitle{
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 800;
  color: var(--brown);
}

/* Lists (icon + label) */
.list{
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.item{
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.icon{
  width: 18px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.95;
}

/* Optional: make inline SVG icons or <img> icons consistent */
.icon img,
.icon svg{
  width: 20px;
  height: 20px;
  display: block;
}

/* Muted helper text */
.muted{ color: var(--muted); }

/* =========================
   Where to Buy row
   ========================= */
.buyRow{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.buyIcon{
  width: 40px;
  height: 40px;
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
  justify-content: center;  /* centers icon horizontally */
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;
}

/* Optional: if Walmart icon is an <img> */
.buyIcon img{
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  
}

.walmart-link{
  display: inline-flex;
  flex-direction: column;   /* icon above text */
  align-items: flex-start;  /* LEFT align the block */
  gap: 6px;
  color: var(--brown);
  text-decoration: none;
}

.walmart-text{
  text-align: left;
}


/* =========================
   Footer
   ========================= */
footer{
  margin-top: 42px;
  padding-top: 18px;
  border-top: 2px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
/*======== 
.rule,
.divider{
  display: none;
}
======== */
/* =========================
   Product cards 
   Desktop: 1 per row, image left
   Mobile:  1 per row, image on top
   ========================= */

/* Always 1 card per row */
.productGrid{
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

/* Desktop / default: image left, text right */
.productCard{
  display: grid;
  grid-template-columns: 160px 1fr;  /* left image column */
  column-gap: 14px;
  align-items: center;
  margin: 12px 0;   /* vertical breathing room outside the border */
  border: 1px solid #000;
  border-radius: 10px;
  overflow: hidden;
  padding: 12px;
}

.productMedia{
  width: 160px;          /* matches the left column */
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productImg{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}

/* Mobile: stack image on top */
@media (max-width: 700px){
  .productCard{
    grid-template-columns: 1fr;  /* stack */
    row-gap: 12px;
  }

  .productMedia{
    width: 100%;
    height: 160px;
  }
}

/* fixed-height summary text (collapsed view) */
.productDesc{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviewButton{
  display: inline-block;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--tan);
}
.reviewButton:hover{ text-decoration: underline; }