:root {
  --nysd-ink: #222;
  --nysd-muted: #6c757d;
  --nysd-accent: #9b3600;
  --nysd-accent-dark: #7a2a00;
  --nysd-nav: #2c211c;
  --nysd-link: #993333;
  --nysd-cream: #faf7f4;
  --nysd-border: #e5ddd6;
}

html { -webkit-text-size-adjust: 100%; }
body.nysd-strap {
  margin: 0;
  color: var(--nysd-ink);
  background: var(--nysd-cream);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
body.nysd-strap img { max-width: 100%; height: auto; }
body.nysd-strap a { color: var(--nysd-link); }

/* Full-width page, little wasted side margin */
.nysd-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0.75rem 2.5rem;
}

/* Original full-bleed header images */
.nysd-masthead-bleed { margin: 0; padding: 0; }
.nysd-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 105px;
  padding: 0 0.5rem;
  background: #fff url("/deli/images/header-bg.jpg") repeat-x left center;
  background-size: auto 105px;
  width: 100%;
  overflow: hidden;
}
.nysd-brandbar .nysd-logo img {
  display: block;
  height: 105px;
  width: auto;
  max-width: none;
}
.nysd-brand-art {
  height: 90px;
  width: auto;
  max-width: none;
  object-fit: contain;
  margin-right: 0.5rem;
}

.nysd-navbar {
  background: var(--nysd-nav) !important;
  border-radius: 0.35rem;
  margin: 0.75rem 0 1rem;
}
.nysd-navbar .nav-link,
.nysd-navbar .navbar-brand {
  color: #f5f0ea !important;
  font-weight: 600;
}
.nysd-navbar .nav-link:hover,
.nysd-navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
  border-radius: 0.25rem;
}
.nysd-navbar .navbar-toggler { border-color: rgba(255,255,255,0.45); }
.nysd-navbar .navbar-toggler-icon { filter: invert(1); }
.nysd-search .form-control { min-width: 10rem; }

.nysd-panel {
  background: #fff;
  border: 1px solid var(--nysd-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.nysd-main.nysd-panel { padding: 1.25rem 1.5rem; }

/* Right promo column needs room for product thumbs */
.nysd-sidebar-right {
  padding: 0.85rem;
}
.nysd-sidebar-right table {
  width: 100% !important;
  max-width: 100%;
}
.nysd-sidebar-right img {
  max-width: 100%;
  height: auto;
}
.nysd-sidebar-right td[width],
.nysd-main td[width] {
  width: auto !important;
}

.nysd-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nysd-border);
  text-align: center;
  color: var(--nysd-muted);
  font-size: 0.9rem;
}

.nysd-menutree { font-size: 0.92rem; }
.nysd-menutree > p { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.5rem; }
.nysd-menutree a.nysd-menu-closed,
.nysd-menutree a.nysd-menu-open {
  display: inline-block;
  width: 1.35rem;
  text-align: center;
  margin: 0.12rem 0.3rem 0.12rem 0;
  padding: 0;
  font-weight: 700;
  color: #fff !important;
  background: var(--nysd-accent);
  border-radius: 0.2rem;
  text-decoration: none !important;
}
.nysd-menutree a.nysd-menu-open { background: var(--nysd-accent-dark); }
.nysd-menutree a.nysd-menu-link {
  color: var(--nysd-link) !important;
  text-decoration: none !important;
}
.nysd-menutree a.nysd-menu-link:hover { text-decoration: underline !important; }

.nysd-main table { max-width: 100%; }
.nysd-main .contentbar1,
.nysd-main .categorybar {
  background: #f3ebe4 !important;
  color: var(--nysd-ink) !important;
}
.nysd-main .menubar {
  background: var(--nysd-accent) !important;
  color: #fff !important;
}
.nysd-main IMG[src*="items/"],
.nysd-main img[src*="items/"] {
  border-radius: 0.35rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nysd-fly h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.nysd-fly .nysd-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nysd-accent-dark);
}
.nysd-fly .btn-buy {
  background: var(--nysd-accent);
  border-color: var(--nysd-accent-dark);
  color: #fff;
  font-weight: 600;
}
.nysd-fly .btn-buy:hover {
  background: var(--nysd-accent-dark);
  color: #fff;
}

.nysd-cart-tiny caption {
  caption-side: top;
  font-weight: 700;
  color: var(--nysd-accent-dark);
  padding-bottom: 0.35rem;
}
.nysd-side-search .form-control { font-size: 16px; }

@media (max-width: 767.98px) {
  .nysd-brandbar { min-height: 72px; background-size: auto 72px; }
  .nysd-brandbar .nysd-logo img { height: 72px; }
}

/* Product cards (promo / random / anywhere) */
.nysd-promo { margin-bottom: 0.75rem; }
.nysd-promo-banner {
  background: var(--nysd-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  margin-bottom: 0.65rem;
}
.nysd-product-card {
  border: 1px solid var(--nysd-border);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.65rem 0.5rem 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  height: 100%;
  box-sizing: border-box;
}
.nysd-product-card-title {
  font-size: 0.9rem;
  line-height: 1.3;
  padding-bottom: 0.35rem;
}
.nysd-product-card img {
  border-radius: 0.35rem;
  max-width: 100%;
  height: auto;
}
.nysd-promo-grid td {
  padding: 0.25rem !important;
  vertical-align: top;
}
.nysd-sidebar-right .nysd-product-card,
.nysd-main .nysd-product-card {
  margin: 0;
}

/* About page */
.nysd-about { max-width: 52rem; }
.nysd-about-block { overflow: auto; margin-bottom: 1.25rem; }
.nysd-about-float-end {
  float: right;
  margin: 0 0 0.75rem 1rem;
  max-width: 35%;
  height: auto;
}
.nysd-about-float-start {
  float: left;
  margin: 0 1rem 0.75rem 0;
  max-width: 45%;
  height: auto;
}
.nysd-video-wrap {
  max-width: 560px;
  margin: 0.75rem 0 1.5rem;
}
.nysd-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: #000;
  border: 1px solid var(--nysd-border);
}

/* Mobile-friendly global tweaks */
.nysd-main,
.nysd-sidebar {
  overflow-x: auto;
}
.nysd-main table[width],
.nysd-main table[width="90%"],
.nysd-main table[width="95%"],
.nysd-main table[width="70%"] {
  width: 100% !important;
  max-width: 100%;
}
.nysd-main img[align],
.nysd-main img[width] {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  .nysd-about-float-end,
  .nysd-about-float-start {
    float: none;
    display: block;
    margin: 0 auto 1rem;
    max-width: 220px;
  }
  .nysd-brand-art { display: none !important; }
  .nysd-main iframe,
  .nysd-main embed,
  .nysd-main object {
    max-width: 100%;
  }
  /* Homepage promo grids stack better */
  .nysd-main table td[width],
  .nysd-main td[width="220px"],
  .nysd-main td[width="33%"] {
    display: block;
    width: 100% !important;
  }
}
