:root {
  --green: #07812e;
  --deep-green: #075c2b;
  --dark-green: #073f2b;
  --yellow: #ffd800;
  --ink: #17241d;
  --muted: #748078;
  --line: #e8eee9;
  --soft-green: #eff9f1;
  --shadow: 0 7px 24px rgba(27, 67, 43, .08);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; }
body.storefront-home {
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url("../images/magunas-dallas-building.cb44b710b003.webp") center / cover fixed no-repeat;
}
body.storefront-home.animated-store-background {
  animation: storefrontBackgroundDrift 36s ease-in-out infinite alternate;
}
@keyframes storefrontBackgroundDrift {
  from { background-position: center, 49.5% 50%; }
  to { background-position: center, 50.5% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  body.storefront-home.animated-store-background { animation: none; }
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.page-width { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar { background: #08712c; color: #fff; font-size: 12px; }
.topbar-inner { width: min(1400px, calc(100% - 48px)); min-height: 34px; margin: auto; display: flex; align-items: center; gap: 16px; }
.topbar-inner a, .cart-trigger { white-space: nowrap; }
.topbar-inner a span, .cart-trigger span { margin-right: 5px; }
.topbar-divider { opacity: .6; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.cart-trigger { padding: 0; border: 0; background: none; color: #fff; }

.main-header { width: min(1400px, calc(100% - 48px)); height: 96px; margin: auto; display: grid; grid-template-columns: 280px minmax(280px, 1fr) 230px; align-items: center; gap: 36px; }
.brand { position: relative; display: inline-flex; flex-direction: column; width: max-content; color: var(--green); line-height: .82; }
.brand-word { font: 800 36px/1 "Outfit", sans-serif; letter-spacing: -2.6px; }
.brand-m { color: var(--yellow); text-shadow: 1px 2px 0 #d9b500; font-size: 45px; }
.brand-dallas { align-self: center; margin-top: -1px; color: #087a31; font: italic 800 27px/1 "Outfit", sans-serif; }
.brand-tagline { align-self: center; margin-top: 5px; color: #147837; font-size: 10px; font-weight: 800; font-style: italic; }
.search-form { display: flex; height: 44px; overflow: hidden; border: 1px solid #d5d9d6; border-radius: 28px; box-shadow: 0 1px 3px #0000000c; }
.search-form input { width: 100%; padding: 0 19px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-form button { width: 52px; border: 0; background: var(--deep-green); color: #fff; font-size: 30px; line-height: 1; }
.header-promise { margin: 0; color: var(--deep-green); text-align: center; font: italic 700 21px/1.1 "Outfit", sans-serif; }
.header-promise span { color: #198043; }
.menu-toggle { display: none; }

.primary-nav { min-height: 44px; padding: 0 max(24px, calc((100% - 1400px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(90deg, #08742b, #008531); color: #fff; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s ease; }
.nav-link:hover, .nav-link.active { background: var(--yellow); color: #153f20; border-radius: 9px; }
.nav-pill { border-radius: 30px; background: #006d29; }
.track-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; background: var(--yellow); color: #163f1e; font-size: 12px; font-weight: 800; white-space: nowrap; }

.hero { position: relative; min-height: 420px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; background: linear-gradient(110deg, #f3f8f2, #e6f1e7 70%, #dceade); }
.hero-copy { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 30px 48px max(24px, calc((100vw - 1320px) / 2)); }
.hero-photo { width: 100%; height: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; padding: 24px max(24px, calc((100vw - 1320px) / 2)) 24px 12px; }
.hero-photo img { display: block; width: 100%; height: 100%; max-height: 420px; border-radius: 14px; object-fit: contain; filter: drop-shadow(0 16px 28px rgba(24, 53, 34, .18)); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #ffce00; }
.hero h1 { margin: 9px 0 4px; color: #07523b; font: 800 clamp(38px, 5vw, 61px)/.91 "Outfit", sans-serif; letter-spacing: -2.1px; }
.hero-copy p { margin: 12px 0 16px 3px; color: #143b2a; font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; line-height: 1.25; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 11px 26px; border-radius: 26px; font-size: 14px; font-weight: 800; }
.button-green { background: linear-gradient(100deg, #079635, #00642a); color: white; }
.button-green:hover { filter: brightness(1.08); transform: translateY(-1px); }
.category-section { padding: 12px 0; }
.category-list { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); padding: 9px 5px; border: 1px solid #edf0ed; border-radius: 12px; box-shadow: 0 4px 14px #182f2010; }
.category-item { min-height: 73px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-right: 1px solid #e8ebe8; font-size: 11px; font-weight: 700; text-align: center; transition: color .2s ease, transform .2s ease; }
.category-item:last-child { border: 0; }
.category-item:hover { color: var(--green); transform: translateY(-2px); }
.category-icon { min-height: 40px; font-size: 31px; line-height: 1.2; filter: drop-shadow(0 3px 2px #0000000c); }
.category-grid { color: var(--green); font-size: 40px; font-weight: 800; }

.benefits { background: linear-gradient(90deg, #eff9f1, #e1f4e5); }
.benefits-inner { min-height: 57px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.benefit { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 13px; border-right: 1px solid #8cc39b; font-size: 11px; font-weight: 600; line-height: 1.25; }
.benefit:last-child { border: 0; }
.benefit strong { font-weight: 800; }
.benefit-icon { font-size: 24px; }

.shopping-section { display: grid; grid-template-columns: minmax(220px, .95fr) minmax(0, 2.25fr) minmax(220px, .95fr); align-items: start; gap: 20px; padding-top: 18px; }
.section-title { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h2 { margin: 0; font: 700 18px/1.15 "Outfit", sans-serif; }
.section-title > a { flex-shrink: 0; color: var(--green); font-size: 11px; font-weight: 800; }
.offer-card { overflow: hidden; border: 1px solid #edf0ed; border-radius: 11px; box-shadow: var(--shadow); }
.offer-title { min-height: 35px; padding: 0 12px; background: var(--deep-green); color: white; }
.offer-title h2 { font-size: 16px; }
.offer-title > a { color: #fff; font-size: 10px; }
.offer-image { position: relative; height: 148px; overflow: hidden; background: #f4eddd; }
.offer-image img { width: 100%; height: 100%; object-fit: cover; }
.save-badge { position: absolute; top: 17px; right: 10px; width: 69px; height: 69px; display: grid; place-content: center; border-radius: 50%; transform: rotate(9deg); background: #fb2630; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.05; text-align: center; }
.save-badge strong { font-size: 14px; }
.offer-description { padding: 9px 13px 12px; }
.offer-product { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.offer-description strong { color: #db171d; font-size: 16px; }
.offer-description del { margin-left: 6px; color: #8e928f; font-size: 12px; }
.featured-title { margin-bottom: 7px; }
.featured-title h2 { font-size: 19px; }
.search-caption { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-card { overflow: hidden; border: 1px solid #edf0ed; border-radius: 11px; background: white; box-shadow: 0 4px 15px #1f38200b; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; height: 132px; overflow: hidden; background: #f4f7f2; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.04); }
.product-illustration { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #fff 0 18%, #eef7ef 19% 44%, #dcefe1 45% 46%, #f7faf7 47%); font-size: clamp(58px, 5vw, 78px); filter: drop-shadow(0 10px 8px rgba(20, 78, 38, .12)); transition: transform .25s ease; }
.product-card:hover .product-illustration { transform: scale(1.08) rotate(-2deg); }
.product-badge { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 4px 7px; border-radius: 12px; background: #e9f8ec; color: #08782f; font-size: 9px; font-weight: 800; }
.quick-add { position: absolute; right: 8px; bottom: 8px; width: 29px; height: 29px; border: 0; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 3px 8px #0002; font-size: 21px; line-height: 1; }
.product-info { padding: 10px 10px 11px; text-align: center; }
.product-category { color: #87918a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-info h3 { margin: 4px 0 2px; font-size: 11px; line-height: 1.3; }
.product-info p { min-height: 26px; margin: 0 0 5px; color: #7d8580; font-size: 9px; line-height: 1.3; }
.product-price { display: block; margin-bottom: 8px; color: #d71920; font-size: 14px; }
.add-to-cart { width: 100%; padding: 7px 8px; display: flex; justify-content: center; align-items: center; gap: 7px; border: 0; border-radius: 20px; background: linear-gradient(100deg, #0b9337, #00652c); color: #fff; font-size: 10px; font-weight: 800; }
.add-to-cart:hover, .quick-add:hover { background: #075b28; color: #fff; }
.add-to-cart.is-added { background: #e5f6e8; color: var(--deep-green); }
.empty-results { grid-column: 1 / -1; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border: 1px dashed #cbd9ce; border-radius: 12px; text-align: center; }
.empty-results > span { font-size: 32px; }
.empty-results h3 { margin: 8px 0 4px; }
.empty-results p { color: var(--muted); font-size: 13px; }

.promo-banner { position: relative; min-height: 255px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 26px; border-radius: 12px; background: linear-gradient(140deg, #9fc72a 0%, #00752f 32%, #006b29 100%); color: white; box-shadow: var(--shadow); }
.promo-banner::before, .promo-banner::after { position: absolute; content: ""; width: 230px; height: 230px; border: 2px solid #ffe200; border-radius: 50%; transform: rotate(-30deg); }
.promo-banner::before { right: -155px; bottom: -144px; }
.promo-banner::after { right: -176px; bottom: -158px; border-width: 7px; }
.promo-kicker { color: #e5f9ac; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.promo-banner h2 { z-index: 1; margin: 9px 0 11px; font: italic 800 clamp(22px, 2.1vw, 30px)/1.02 "Outfit", sans-serif; }
.promo-banner p { z-index: 1; width: max-content; margin: 0; padding: 8px 14px; transform: rotate(-3deg); border-radius: 20px; background: var(--yellow); color: #164821; font: italic 800 14px/1.15 "Outfit", sans-serif; }
.promo-cart { z-index: 1; align-self: flex-end; margin-top: 13px; font-size: 39px; }

.lower-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 35px; }
.lower-info > div { display: flex; gap: 12px; padding: 17px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lower-icon { font-size: 23px; }
.lower-info h2 { margin: 0 0 5px; color: var(--deep-green); font: 700 13px "Outfit", sans-serif; }
.lower-info p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.lower-info p a { color: var(--green); font-weight: 700; }
.footer { background: #073f2b; color: #d7e9dd; }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; }
.footer-inner p { margin: 0; }
.footer-brand { color: white; font: 800 17px "Outfit", sans-serif; }
.footer-brand span { color: var(--yellow); font-style: italic; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 22px; max-width: min(380px, calc(100% - 44px)); padding: 12px 17px; transform: translateY(20px); border-radius: 8px; background: #113d29; color: #fff; box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (min-width: 1400px) {
  .hero { min-height: 420px; }
  .product-image-wrap { height: 148px; }
  .promo-banner { min-height: 279px; }
}

@media (max-width: 1080px) {
  .main-header { grid-template-columns: 220px minmax(240px, 1fr) 180px; gap: 20px; }
  .brand-word { font-size: 31px; }
  .brand-m { font-size: 40px; }
  .header-promise { font-size: 18px; }
  .nav-link { padding-inline: 10px; font-size: 11px; }
  .track-button { padding-inline: 12px; font-size: 10px; }
  .shopping-section { grid-template-columns: minmax(190px, .9fr) minmax(0, 2fr); }
  .promo-banner { display: none; }
  .product-image-wrap { height: 145px; }
  .lower-info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .page-width, .topbar-inner, .main-header { width: min(100% - 28px, 560px); }
  .topbar-inner { min-height: 32px; justify-content: center; font-size: 10px; }
  .topbar-inner > a:nth-of-type(2), .topbar-inner > a:nth-of-type(3), .topbar-divider, .topbar-right { display: none; }
  .main-header { height: auto; min-height: 72px; grid-template-columns: 1fr auto; gap: 9px 12px; padding-block: 9px; }
  .brand-word { font-size: 28px; }
  .brand-m { font-size: 35px; }
  .brand-dallas { font-size: 22px; }
  .brand-tagline { font-size: 8px; }
  .header-promise { display: none; }
  .menu-toggle { width: 40px; height: 40px; grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; border: 1px solid #e2e8e3; border-radius: 9px; background: white; }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; border-radius: 2px; background: var(--deep-green); }
  .search-form { grid-column: 1 / -1; grid-row: 2; height: 40px; }
  .primary-nav { position: absolute; z-index: 5; top: 116px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 8px 14px 14px; box-shadow: 0 12px 15px #0002; }
  .primary-nav.is-open { display: flex; }
  .nav-link { min-height: 39px; padding-inline: 12px; }
  .track-button { justify-content: center; margin-top: 4px; }
  .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-copy { width: 100%; max-width: 600px; margin: 0 auto; padding: 34px 20px 20px; }
  .hero-photo { width: min(calc(100% - 32px), 480px); min-height: 0; height: auto; margin: 0 auto 18px; padding: 0; }
  .hero-photo img { width: 100%; height: auto; max-height: none; border-radius: 12px; }
  .eyebrow { font-size: 9px; }
  .hero h1 { font-size: clamp(37px, 10vw, 50px); }
  .hero-copy p { font-size: 15px; }
  .category-section { width: 100%; padding: 9px 0; }
  .category-list { display: flex; overflow-x: auto; gap: 0; padding: 5px 8px; border-right: 0; border-left: 0; border-radius: 0; scrollbar-width: none; }
  .category-list::-webkit-scrollbar { display: none; }
  .category-item { flex: 0 0 90px; min-height: 71px; }
  .category-icon { font-size: 27px; }
  .category-grid { font-size: 35px; }
  .category-item span:last-child { white-space: nowrap; font-size: 10px; }
  .benefits-inner { width: 100%; grid-template-columns: repeat(2, 1fr); padding: 7px 12px; }
  .benefit { justify-content: flex-start; padding: 8px 7px; border-right: 0; font-size: 9px; }
  .benefit-icon { font-size: 20px; }
  .shopping-section { grid-template-columns: 1fr; gap: 15px; padding-top: 14px; }
  .offer-card { display: grid; grid-template-columns: 1fr 1.15fr; }
  .offer-title { grid-column: 1 / -1; }
  .offer-image { height: 125px; }
  .offer-description { display: flex; flex-direction: column; justify-content: center; }
  .save-badge { width: 55px; height: 55px; font-size: 11px; }
  .save-badge strong { font-size: 11px; }
  .featured { grid-row: 2; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-image-wrap { height: clamp(120px, 38vw, 190px); }
  .product-info { padding: 10px 8px; }
  .product-info h3 { font-size: 11px; }
  .promo-banner { display: flex; min-height: 180px; }
  .promo-banner h2 { font-size: 25px; }
  .promo-cart { position: absolute; right: 25px; bottom: 20px; }
  .lower-info { grid-template-columns: 1fr; gap: 8px; padding-block: 22px; }
  .lower-info > div { padding: 13px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 7px; padding-block: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
