:root{
  --page-max: 980px;
  --green: #008000;
  --blue: #0000a0;
  --red: #ff0000;
  --text: #111;
  --muted: #555;
  --border: #e5e5e5;
  --card: #ffffff;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff url("../images/back_green.gif") repeat;
  line-height: 1.35;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: #0645ad; }
a:hover { text-decoration: underline; }

/* Layout wrapper */
.wrap{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px;
}

.page{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Header */
.masthead{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.masthead .logo{
  flex: 0 0 auto;
  width: 180px;
  max-width: 40%;
}

.masthead .wordmark{
  flex: 1 1 auto;
  min-width: 0;
}

/* Nav */
.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #000;

  justify-content: center;   /* centers the nav horizontally */
}

.nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  display: inline-block;
}

.nav a.home{
  background: var(--red);
}

.nav a:not(.home){
  background: rgba(255,255,255,.06);
}

.nav a:not(.home):hover{
  background: rgba(255,255,255,.12);
}

/* Accent */
.accent{
  height: 8px;
  background: var(--green);
}

/* Content */
.content{
  padding: 14px;
}

.grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.95fr;
  gap: 14px;
  align-items: start;
}

/* Panels */

.leftcol img{
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.panel{
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
}

.panel h2{
  margin: 0 0 8px;
  font-size: 20px;
}

.panel h3{
  margin: 0 0 8px;
  font-size: 18px;
}

/* Colors */
.title-green{ color: var(--green); }
.title-blue{ color: var(--blue); }
.title-red{ color: var(--red); }

/* Top sellers */
.topsellers img{
  margin: 0 auto 10px;
}

.topsellers .ts-link{
  display: block;
  text-align: center;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 6px;
  border-radius: 6px;
}
.topsellers .ts-link:hover{
  background: #f4f4f4;
  text-decoration: underline;
}

/* Footer */
/* Footer links + footer text (match original look) */
.footer-links{
  padding: 10px 14px 0;
  text-align: center;
  font-weight: 700;
  color: var(--green);
  font-size: 13px;
  line-height: 1.2;
}
.footer-links a{
  color: var(--green);
  text-decoration: none;
}

.footer-nav-item{
  white-space: nowrap;
  display: inline-block;
  margin: 0 6px;
}

.footer-links a:hover{ text-decoration: underline; }

.footer{
  padding: 6px 14px 14px;
  text-align: center;
  font-size: 13px;
  color: #000;
  line-height: 1.35;
}

.last-update{
  margin-top: 6px;
  font-size: 12px;
}

.footer-address{
  margin-top: 10px;
  font-size: 13px;
}

.footer-url{
  margin-top: 10px;
  font-size: 13px;
}
.footer-url a{
  color: #0645ad; /* classic link blue like your screenshot */
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  .grid{
    grid-template-columns: 1fr;
  }
  
  .footer-nav-item{
    display: inline-block;
    margin: 6px 10px;
  }

}
}