/* FoodFest Grocery & Garden - circa 2005 */
:root {
  --ff-red: #E0020D;
  --ff-blue: #024EA1;
  --ff-yellow: #F2B705;
  --ff-cream: #FFF8E7;
  --ink: #222222;
  --ink-soft: #555555;
  --rule: #CCCCCC;
  --white: #FFFFFF;
  --max-width: 780px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--ff-blue);
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: var(--ff-blue);
  text-decoration: underline;
}

a:visited {
  color: purple;
}

a:hover {
  color: var(--ff-red);
}

h1, h2, h3, h4 {
  font-family: Arial, "Arial Black", sans-serif;
  font-weight: bold;
  color: var(--ff-red);
}

h1 { font-size: 22px; margin-bottom: 10px; }
h2 { font-size: 18px; margin-bottom: 8px; }
h3 { font-size: 15px; margin-bottom: 6px; }

/* ---- WRAPPER ---- */
.site-wrapper {
  width: var(--max-width);
  margin: 0 auto;
  background: var(--white);
  border-left: 2px solid #013A7A;
  border-right: 2px solid #013A7A;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ff-blue);
}

.site-header .logo img {
  height: 80px;
  width: auto;
}

.site-header .store-info-header {
  text-align: right;
  font-size: 11px;
  font-weight: bold;
  color: var(--ink);
  line-height: 1.6;
}

/* ---- NAV BAR ---- */
.site-nav {
  background: var(--ff-red);
  padding: 0;
  text-align: center;
  border-bottom: 2px solid #8B0000;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 6px 14px;
  color: var(--white);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  border-left: 1px solid #FF4444;
  border-top: 1px solid #FF6666;
  border-right: 1px solid #8B0000;
  border-bottom: 1px solid #660000;
}

.site-nav a:visited {
  color: var(--white);
}

.site-nav a:hover {
  background: #C80000;
  border-top-color: #E84444;
  color: var(--white);
}

.site-nav li:first-child a {
  border-left: 1px solid #FF6666;
}

/* ---- CONTENT ---- */
.site-content {
  padding: 15px;
  min-height: 400px;
  background: var(--white);
}

.site-content p {
  margin-bottom: 10px;
}

.site-content ul, .site-content ol {
  margin: 0 0 10px 20px;
}

.site-content li {
  margin-bottom: 4px;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 15px 0;
}

/* ---- HOME PAGE ---- */
.welcome-heading {
  font-size: 22px;
  color: var(--ff-red);
  margin-bottom: 10px;
}

.weekly-ad-box {
  clear: both;
  border: 3px solid var(--ff-blue);
  padding: 12px;
  margin: 15px 0;
  text-align: center;
  background: var(--ff-cream);
}

.weekly-ad-box h2 {
  color: var(--ff-red);
  margin-bottom: 5px;
}

.weekly-ad-box .ad-dates {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.weekly-ad-btn {
  display: inline-block;
  padding: 8px 24px;
  background: var(--ff-red);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-top: 2px solid #FF6666;
  border-left: 2px solid #FF4444;
  border-right: 2px solid #8B0000;
  border-bottom: 2px solid #660000;
}

.weekly-ad-btn:visited {
  color: var(--white) !important;
}

.weekly-ad-btn:hover {
  background: #C80000;
}

.store-hours-home {
  margin: 15px 0;
  font-size: 12px;
}

.store-hours-home h3 {
  color: var(--ff-red);
  margin-bottom: 5px;
}

.store-hours-home table {
  border-collapse: collapse;
}

.store-hours-home td {
  padding: 2px 10px 2px 0;
}

/* ---- STARBURST ---- */
.starburst {
  float: right;
  margin: 0 0 10px 15px;
  width: 160px;
  height: 160px;
  position: relative;
}

.starburst svg {
  width: 100%;
  height: 100%;
}

.starburst-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  color: var(--ff-red);
  line-height: 1.3;
  width: 100px;
}

/* ---- WEEKLY AD ---- */
.ad-viewer h1 {
  text-align: center;
  margin-bottom: 2px;
}

.ad-dates-heading {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 15px;
}

.ad-page-img {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
}

.ad-pdf-link {
  text-align: center;
  margin: 15px 0;
  font-size: 13px;
}

.ad-disclaimer {
  text-align: center;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 15px;
  font-style: italic;
}

.ad-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
}

/* Ad archive list */
.ad-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ad-archive-list li {
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
}

/* ---- DEPARTMENTS ---- */
.dept-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dept-list li {
  margin-bottom: 3px;
}

.dept-list a {
  font-weight: bold;
}

.dept-note {
  margin-top: 15px;
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
}

.dept-img-placeholder {
  width: 100%;
  height: 120px;
  background: #EEEEEE;
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 11px;
  margin-bottom: 10px;
}

/* ---- CAKE ORDER FORM ---- */
.cake-form {
  border: 1px solid var(--rule);
  padding: 12px;
  background: #FAFAFA;
  margin: 10px 0;
}

.cake-form label {
  display: block;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 11px;
}

.cake-form input[type="text"],
.cake-form select,
.cake-form textarea {
  width: 100%;
  padding: 4px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  border: 1px solid var(--rule);
}

.cake-form select {
  width: auto;
  min-width: 200px;
}

.cake-form textarea {
  height: 60px;
  resize: vertical;
}

.cake-form .form-note {
  font-size: 10px;
  color: var(--ink-soft);
  font-style: italic;
}

.print-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--ff-blue);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  font-family: Arial, sans-serif;
  border-top: 1px solid #3377CC;
  border-left: 1px solid #2266BB;
  border-right: 1px solid #013A7A;
  border-bottom: 1px solid #012D5E;
}

.print-btn:hover {
  background: #013A7A;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #F0F0F0;
  border-top: 2px solid var(--rule);
  padding: 12px 15px;
  text-align: center;
  font-size: 10px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.site-footer .copyright {
  margin-bottom: 2px;
}

.site-footer .footer-address {
  margin-bottom: 2px;
}

.site-footer .footer-serving {
  margin-bottom: 8px;
}

/* ---- HIT COUNTER ---- */
.hit-counter {
  margin-top: 8px;
  font-size: 10px;
  color: var(--ink-soft);
}

.hit-counter .counter-label {
  margin-bottom: 3px;
}

.counter-digits {
  display: inline-flex;
  gap: 1px;
}

.counter-digit {
  display: inline-block;
  width: 16px;
  height: 22px;
  background: #111111;
  color: #33FF33;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 22px;
  border: 1px solid #333333;
  border-radius: 2px;
}

/* ---- MAP PLACEHOLDER ---- */
.map-placeholder {
  width: 100%;
  height: 200px;
  background: #EEEEEE;
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 11px;
  margin: 10px 0;
}

/* ---- BAGGER PLACEHOLDER ---- */
.bagger-placeholder {
  width: 120px;
  height: 150px;
  background: #EEEEEE;
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 10px;
  margin: 5px 0;
}

/* ---- DIGITAL CIRCULAR ---- */
.circular-section {
  margin-bottom: 15px;
  border-bottom: 2px solid var(--ff-red);
  padding-bottom: 10px;
}

.circular-section:last-child {
  border-bottom: none;
}

.circular-section h2 {
  background: var(--ff-red);
  color: var(--white);
  padding: 4px 10px;
  font-size: 14px;
  margin-bottom: 8px;
}

.circular-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.circular-item {
  width: 170px;
  border: 1px solid var(--rule);
  padding: 6px;
  text-align: center;
  background: var(--white);
  font-size: 11px;
  vertical-align: top;
}

.circular-item img {
  max-width: 140px;
  max-height: 110px;
  display: block;
  margin: 0 auto 5px;
}

.circular-item .item-name {
  font-weight: bold;
  font-size: 11px;
  line-height: 1.3;
  min-height: 28px;
}

.circular-item .item-size {
  font-size: 10px;
  color: var(--ink-soft);
}

.circular-item .item-price {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 18px;
  color: var(--ff-red);
  margin-top: 3px;
}

.circular-item .item-price-sm {
  font-size: 14px;
}

.circular-item .item-note {
  font-size: 9px;
  color: var(--ink-soft);
  font-style: italic;
}

.circular-coupon {
  border: 2px dashed var(--ff-red);
  padding: 10px;
  margin: 15px 0;
  text-align: center;
  background: var(--ff-cream);
}

.circular-coupon strong {
  color: var(--ff-red);
  font-size: 14px;
}

.circular-coupon .coupon-details {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---- PRINT STYLESHEET ---- */
@media print {
  body {
    background: white;
  }

  .site-wrapper {
    width: 100%;
    border: none;
  }

  .site-header,
  .site-nav,
  .site-footer,
  .starburst,
  .weekly-ad-box {
    display: none;
  }

  .site-content {
    padding: 0;
  }

  .print-btn {
    display: none;
  }

  a {
    color: black;
    text-decoration: none;
  }

  .cake-form {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
}
